

package com.maoshi.shop.common.config;

import com.google.gson.Gson;
import com.maoshi.shop.common.bean.ALiDaYu;
import com.maoshi.shop.common.bean.Qiniu;
import com.maoshi.shop.common.bean.QuickBird;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@AllArgsConstructor
public class ShopBeanConfig {

	private final ShopBasicConfig shopBasicConfig;

    @Bean
    public Qiniu qiniu() {
    	return shopBasicConfig.getQiniu();
    }

    @Bean
    public ALiDaYu aLiDaYu () {
    	return shopBasicConfig.getALiDaYu();
    }

    @Bean
    public QuickBird quickBird(){
        return shopBasicConfig.getQuickBird();
    }

    @Bean
    public Gson gson(){
        return new Gson();
    }
}
